import request from '@/utils/request'

const baseUrl = '/api/position-salary-change'

// 保存职位/薪资异动申请
export function savePositionSalaryChange(data) {
    return request({
        url: `${baseUrl}/save`,
        method: 'post',
        data
    })
}

// 获取职位/薪资异动申请列表
export function getPositionSalaryChangeList(params) {
    return request({
        url: `${baseUrl}/list`,
        method: 'get',
        params
    })
}

// 获取职位/薪资异动申请详情
export function getPositionSalaryChangeDetail(id) {
    return request({
        url: `${baseUrl}/${id}`,
        method: 'get'
    })
}

// 删除职位/薪资异动申请
export function deletePositionSalaryChange(id) {
    return request({
        url: `${baseUrl}/${id}`,
        method: 'delete'
    })
} 